package chapter15.exercise;

import java.util.ArrayList;
import java.util.List;

public class GenericVarargs {
    public static <T> List<T> makeList(T... args) {
        List<T> list = new ArrayList<>();
        for (T t : args) {
            list.add(t);
        }
        return list;
    }

    public static void main(String[] args) {

    }
}
